<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>

    
  	<title>塔城地区公共就业信息有务网_单位用户登录</title>
    <meta charset="UTF-8">
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<link href="../common/style.css" rel="stylesheet" type="text/css" />
	<link rel="stylesheet" href="../common/css/reset.css" />
<!--	<script type="text/javascript" src="../My97DatePicker/WdatePicker.js"></script>-->
	<script type="text/javascript" src="../js/jquery-1.8.0.js"></script>
	<script type="text/javascript" src="../js/jquery.page.js"></script>
      <script type="text/javascript" src="../js/downloadutil.js"></script>
	<link href="../common/css/pageCode.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript">

		$(function(){

			$(".tcdPageCode").createPage({
				pageCount:6,  //总页数
				current:1,    //当前页
				backFn:function(p){
					//alert(p);
					console.log(p);
					//单击回调方法，p是当前页码
				}
			});
			//查询求职信息
            $.ajax({
                url:"getQZInfo.action",
                headers:{
                    token:window.sessionStorage.getItem("token")
                },
                type:"POST",
                dataType:"json",
                success:function(recruitList){
                    $("#table1").empty()
                    var str=`
                       <tr>
                        <th>岗位名称</th>
                        <th>发布时间</th>
                        <th>招聘人数</th>
                        <th>投职人数</th>
                        <th>简历下载</th>
                      </tr>
                    `
                    $("#table1").append(str);
                    $.each(recruitList,function (key,recruit) {
                       str="<tr>" +
                            "<td>"+recruit.gwmc+"</td>"+
                            "<td>"+recruit.createTime+"</td>"+
                            "<td>"+recruit.zprs+"</td>"+
                            "<td>"+recruit.tdrs+"</td>";
                        if(recruit.tdrs==0){
                            str+="<td><a  href='javascript:alert(\"当前岗位暂无投递！\")'>下载</a></td>";
                        }else{
                            str+="<td><a href=\"javascript:void(0)\" onclick=\"downloadTT("+recruit.id+",&quot;"+recruit.gwmc+"&quot;)\">下载</a></td>";
                        }
                        str+="</tr>";
                        $("#table1").append(str);
                    })

                }
            });
		});
        function downloadTT(id,gwmc){
            var headers = {
                'token':window.sessionStorage.getItem("token"),
                'id':id,
                'gwmc':gwmc
            };
            downloadFileWithHeaders("/dw/downloadResumeZip.action", headers);
            //携带头信息下载方法,否则使用 window.location.href="grResumeDownload"; 方式，无法携带token，
            //而用ajax是完成不了下载需求的
        }
</script>
  </head>
  
  <body>
  <div class="ban1">
    <div class="nav1">
		<P><span>马力，欢迎登录！</span>  |  <a href="javascript:void(0);" id="updatePassword">修改密码</a>  |  <a href="#">退出</a></P>
        <ul>
            <li><a href="dw_index.html">单位首页</a></li>
			<li><a href="dw_resume_search.html">人才搜索</a></li>
            <li><a href="dw_zp_manage.html">招聘管理</a></li>
			<li><a href="dw_qz_manage.html">求职管理</a></li>
			<li><a href="dw_zph_manage.html">招聘会管理</a></li>
        </ul>
    </div>
</div>

<div class="main mt12">
	<div class="fl w195">
    	<dl>
        	<dt><strong>常用功能</strong></dt>
			<dd><img src="../images/ico3.gif"/><a href="dw_index.html" title="">单位预览</a></dd>
            <dd><img src="../images/ico1.gif"/><a href="dw_company_update.html" title="">单位基本信息</a></dd>
        </dl>
    </div>
	<div class="fr w795">
    	<div class="yh-tit"><strong>求职管理</strong></div>
          <table border="0" cellspacing="0" cellpadding="0" class="zwlb" id="table1">
              <tr>
                <th>岗位名称</th>
                <th>发布时间</th>
				<th>招聘人数</th>
                <th>投职人数</th>
                <th>简历下载</th>
              </tr>
			   <tr>
					<td>后台开发</td>
					<td>2021-2-20 10:20:30</td>
					<td>5</td>
					<td>3</td>
					<td><a href="">下载</a></td>
				</tr>
              </table>
              <label id="label1" style="color:red"></label>
             <table border="0" cellspacing="0" cellpadding="0" class="num" >
              <tr>
                <td>
				  <div class="tcdPageCode"></div>
        		</td>
              </tr>
              </tr>
             </table>
    </div>
</div>
<div class="foot">
    <ul>
      相关网站导航：<select name="menu1" onchange="MM_jumpMenu('parent',this,0)" style="margin-left:20px;display:inline;">
          <option>-- 自  治 区 政 府 部 门 --</option>
        </select> 
        <select name="menu2" onchange="MM_jumpMenu('parent',this,0)" style="margin-left:20px;display:inline;">
          <option>-- 地 州 网  站 --</option>
        </select>
            <select name="menu3" onchange="MM_jumpMenu('parent',this,0)" style="margin-left:20px;display:inline;">
              <option>--主 要  新 闻  媒  体 --</option>
            </select>
            <select name="menu4" onchange="MM_jumpMenu('parent',this,0)" style="margin-left:20px;display:inline;">
              <option>-- 主 要 门 户 及 合 作 网 站 --</option>
            </select>
      </ul>
    
    <p>主办单位：塔城地区人力资源和社会保障局<br />技术支持：塔城地区人力资源和社会保障局信息化办公室</p>
</div>
  <script>

  </script>
</body>
</html>
